<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="PhotoController.*,java.util.*, java.io.*,java.sql.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<%
ArrayList<PhotoOldBean> datas2=(ArrayList<PhotoOldBean>)request.getAttribute("list");
String nick=(String)session.getAttribute("Mem_Nick");

%>
<body>
<div style="position:relative;top:2px;left:2px;width:690px;height:190px;background-color:#ffffff">
		<div style="position:relative;top:0px;left:0px;">

<table border="0" width="650" height="200" cellpadding="0" cellspacing="0">
	<tr>
		<%
		for(PhotoOldBean photoOldBean:datas2){
		%>
		<td>
		<div style="background-color:">
		<table>
		<tr>
		<%
			String nick2=(String)session.getAttribute("Mem_Nick");
			if(nick2.equals("Guest")){
		%>
		<td align="center" bgcolor="">
		<img src=<%=photoOldBean.getOld_Photo() %> width="130" height="130" border="0">
	  	</td>
		<%
			}else{
		%>
		<td align="center" bgcolor="">
		<a href="/KOMORIUTA/PhotoOldAction.do?action=pt_old_list&id=<%=photoOldBean.getID() %>&nick=<%=nick %>">
		<img src="/KOMORIUTA/Applications/Old/photo/<%= photoOldBean.getOld_Photo() %>"  width="130" height="130" />
	  	</a>
	  	</td>
		<%
			}
		%>
		
	  	</tr>
	  	</table>
	  	</div>
	  	</td>
	  	<%
		}
	  	%>
	</tr>
</table>
</div>
</div>
</body>
</html>